// UserOrderMapper.java
package com.itheima.Mapper;

import com.itheima.pojo.Order;
import com.itheima.pojo.OrderVO;

import com.itheima.pojo.UserOrderQueryParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserOrderMapper {

    /**
     * 用户订单分页查询
     */
    List<OrderVO> listForUser(UserOrderQueryParam queryParam);
    
    /**
     * 根据订单号查询订单
     */
    Order getByOrderNumber(String orderNumber);
    
    /**
     * 更新订单支付状态
     */
    void updatePaymentStatus(@Param("id") Integer id, @Param("status") String status);
}